<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        var arr = [70, 60, 90, 85, 76, 90, 89, 96, 80, 92]

        function average(arr) {
            var sum = 0
            for (var i = 0; i < arr.length; i++) {
                sum += arr[i]
            }
                return sum / arr.length
        }

        function moreAvr (arr) {
            var count = 0
            for (var i = 1; i < arr.length; i++ ) {
                if (arr[i] >= average(arr)) {
                    count += 1
                }
            }
            console.log("成绩高于平均分的人数为" + count);
        }

        moreAvr(arr);
    </script>
</head>

<body>

</body>

</html>